package com.chenyongjing.design.pattern.factory.method;

public class Consumer {
    public static void main(String[] args) {
        Car miniCar = new MiniCarFactory().getCar();
        Car tesla = new TeslaFactory().getCar();
        miniCar.name();
        tesla.name();

    }
}
